package com.lin.repository;

import com.lin.dataobject.ProductAttribute;
import com.lin.dataobject.ProductUnit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MYQ on 2017/10/27.
 */
public interface ProductAttributeRepository extends JpaRepository<ProductAttribute,Integer>{
    List<ProductAttribute> findAll(Specification<ProductAttribute> specification);

    Page<ProductAttribute> findAll(Specification<ProductAttribute> specification, Pageable pageable);

    Long count(Specification<ProductAttribute> specification);

}
